package com.example.logdemo.config;

import com.example.logdemo.entity.UserExecuteLog;
import com.mzt.logapi.service.ILogRecordService;
import org.springframework.stereotype.Service;
import com.mzt.logapi.beans.LogRecord;

import java.util.List;

/**
 * @version 1.0
 * @author: ZackYoung
 * @date: 2021/4/1 11:09
 */
@Service
public class DbLogRecordServiceImpl implements ILogRecordService {


    @Override
    public void record(LogRecord logRecord) {
        UserExecuteLog userExecuteLog = new UserExecuteLog();
        userExecuteLog.setContent(logRecord.getTenant());
        userExecuteLog.insert();
    }

    @Override
    public List<LogRecord> queryLog(String bizKey) {
        return null;
    }

    @Override
    public List<LogRecord> queryLogByBizNo(String bizNo) {
        return null;
    }
}
